package com.qiyue;


import com.qiyue.utils.HttpUtil;

import java.io.IOException;

public class CilentTest {
    public static void main(String[] args) throws IOException {
        /*测试对文件的上传
        String s = HttpUtil.postFileData("http://127.0.0.1:8080/file/upload", new File("F:/0.jpg"));
        System.out.println(s);*/

        /*测试对文件的下载，单元测试中有代码
        String s = HttpUtil.getData("http://127.0.0.1:8080/file/download", 1f7acb23-e4c5-4eb6-9b09-59fe589a549c);
        System.out.println(s);*/

        //测试读取文件元数据
        String s = HttpUtil.getData("http://127.0.0.1:8080/file/fileDate", "1f7acb23-e4c5-4eb6-9b09-59fe589a549c");
        System.out.println(s);
    }

}
